package 设计模式.工厂模式.factorymethod;

/**
 * @description:
 * @author: asd
 * @time: 2022/11/18 1:41
 */
public class WhiteHumanFactory extends AbstractHumanFactory{
    @Override
    public Human createHuman() {
        return new WhiteHuman();
    }
}
class WhiteHuman implements Human{

    @Override
    public void print() {
        System.out.println("白人");
    }
}
